| Visual Basic (Declaration) | |
|---|---|
Overloads Public Function BeginInvoke( _ ByVal method As Delegate, _ ByVal ParamArray args() As Object _ ) As IAsyncResult | |
| C# | |
|---|---|
public IAsyncResult BeginInvoke( Delegate method, params object[] args ) | |
Parameters
- method
- A delegate to a method that takes parameters of the same number and type that are contained in the args parameter.
- args
- An array of objects to pass as arguments to the given method. This can be a null reference (Nothing in Visual Basic) if no arguments are needed.
Return Value
An System.IAsyncResult that represents the result of the System.Windows.Forms.Control.BeginInvoke(System.Delegate) operation.| Exception | Description |
|---|---|
| System.InvalidOperationException | No appropriate window handle can be found. |